---
title: View
metaTitle: View
description: View is the foundational component for Amplify UI primitives. While View renders a
by default, it can render any HTML element and supports styling via props.
metaDescription: View is the foundational component for Amplify UI primitives. While View renders a
by default, it can render any HTML element and supports styling via props.
reactSource: packages/react/src/primitives/View/View.tsx
mdnUrl: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/div
htmlElement: div
supportedFrameworks: react
---
import { Fragment } from '@/components/Fragment';
import { PageTabLayout } from '@/components/Layout/PageTabLayout';
import { getCustomStaticPath } from '@/utils/getCustomStaticPath';
import { PropsTableTab } from '@/components/propsTable/PropsTableTab';
import data from '@/data/props-table.json';
export async function getStaticPaths() {
return getCustomStaticPath(frontmatter.supportedFrameworks);
}
{/* `getStaticProps` is required to prevent "Error: getStaticPaths was added without a getStaticProps. Without getStaticProps, getStaticPaths does nothing" */}
export async function getStaticProps() {
return { props: {} }
}
{({ platform }) => import(`./${platform}.mdx`)}
},
{
title: "Props",
children:
}]}
/>